home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 5 / Amiga Tools 5.iso / grafik / 3d & render tools / irit / man / man6 / while.6 < prev    next >
Text File  |  1996-07-16  |  629b  |  29 lines

  1. .TH WHILE
  2.  6 "IRIT Version 6.0" 
  3. .SH NAME
  4. WHILE
  5.  
  6.  
  7.  
  8.  WHILE( NumericType Cond, AnyType Body )
  9.  
  10. Executes the Body (see below), while the WHILE loop conditions
  11. Cond is evaluated into a non zero value. Cond is being
  12. evaluated before each iteration.
  13.  
  14. The body may consist of any number of regular commands, separated by
  15. COLONs, including nesting loops to an arbitrary level.
  16.  
  17. Example:
  18.  
  19.  deg = 0;
  20.  rotstepx = rotx( 10 );
  21.  WHILE ( deg < 360,
  22.      deg = deg + 10:
  23.      view_mat = rotstepx * view_mat:
  24.      view( list( view_mat, axes ), ON )
  25.  );
  26.  
  27. Displays axes with a view direction that is rotated 10 degrees at a
  28. time around the X axis.
  29.